<?php
// +----------------------------------------------------------------------
// | ManniuRead
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://manniuyun.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: heitao <read@manniuyun.com>
// +----------------------------------------------------------------------

namespace app\mall\model;

use think\Model;

class MallGoodsData extends Model{
	// 内容 - 获取器
    protected function getGoodsDescAttr($value) {
        return htmlspecialchars_decode($value);
    }

    /**
     * 商品规格 - 修改器
     */
    public function setGoodsSpecAttr($value){
        return mn_array2string($value);
    }

    /**
     * 商品规格 - 获取器
     */
    public function getGoodsSpecAttr($value){
        return mn_string2array($value);
    }
}